package cn.lhl.domain.system;

import lombok.Data;

import java.io.Serializable;

@Data
public class Dept implements Serializable {

    private String id;
    private String deptName;
    private Dept parent;   //父部门类型也是一个实体类
    private Integer state;
    private String companyId;
    private String companyName;

    //查找部门的父部门名称： parent.deptName,   parent.companyId

    //返回Dept实体类：{id:2, deptName:北京分公司, state:1, companyId:1, companyName:传智播客
    //                  parent:{id:1, deptName:传智播客, state:1, companyId:1, companyName:传智播客, parent:null}
    //               }
}
